import Vue from 'vue'
import Router from 'vue-router'
// import Reacommend from 'components/recommend/recommend'
// import Singer from 'components/singer/singer'
// import Rank from 'components/rank/rank'
// import Search from 'components/search/search'
Vue.use(Router)

export default new Router({

  routes: [
    {
      path: '/',
      // redirect: '/recommend'
      component: (resolve) => require(['components/recommend/recommend'], resolve)
    },
    {
      path: '/recommend',
      component: (resolve) => require(['components/recommend/recommend'], resolve)
    },
    {
      path: '/Singer',
      component: (resolve) => require(['components/singer/singer'], resolve)
    },
    {
      path: '/Rank',
      component: (resolve) => require(['components/rank/rank'], resolve)
    },
    {
      path: '/Search',
      component: (resolve) => require(['components/search/search'], resolve)
    }
  ]
})
